home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010921-20020314
/
000286_shifeux@hotmail.com_Tue Jan 8 14:32:50 EST 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
49 lines
Article: 13118 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!news.kjsl.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: shifeux@hotmail.com (Shifeux)
Newsgroups: comp.protocols.kermit.misc
Subject: Kermit 8 FTP scripting
Date: 8 Jan 2002 11:16:09 -0800
Organization: http://groups.google.com/
Lines: 31
Message-ID: <336f652d.0201081116.4cd7a675@posting.google.com>
NNTP-Posting-Host: 208.178.159.150
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1010517370 21360 127.0.0.1 (8 Jan 2002 19:16:10 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 8 Jan 2002 19:16:10 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13118
Hello, I am writing a small kermit script using the built in ftp
client. The script works fine as far as stepping through the transfer,
but I am having problems working with the log files. I would like to
keep a detailed transaction log containing the status of the issued
commands. For example, when the script issues the following command:
ftp cd \%r
i would like to be able to send a line of text to the transaction log
to indicate the status of that command. I am able to do that using
the if fail or if success in the next line of the sctipt. But for a
failure I need to exit the script rather than carry through with other
commands. My example is as follows:
ftp cd \tmp\hello\
if success write TRANSACTION-LOG FTP Server Message:
\v(ftp_message)\13\10
if fail write TRANSACTION-LOG FTP Server Message:
\v(ftp_message)\13\10
I can't seem to add in an exit command to the if fail line. If i have:
if fail exit 1 write TRANSACTION-LOG FTP Server message:
\v(ftp_message)
the transaction log is never written. How and i string along more than
1 command in this statement? A (,) does not do the trick.
Is there an easier way to accomplish this type of logging?
Thanks.